<%@page contentType="content-type: application/x-javascript" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
var CAMBIAR_JORNADA = {

	inicio : function() {
		$('#jornada-trofeos').datepicker({ dateFormat: 'dd/mm/yy', prevText: '<s:text name="general.palabras.mes_anterior" />', nextText: '<s:text name="general.palabras.mes_siguiente" />', constrainInput: true, showButtonPanel: true, closeText: ' ', minDate: FECHA_INICIO, changeYear: 'true' });
		$('#jornada-trofeos').change(function() {
			$(this).parents('form').submit();
		});
		$('#cambiar-jornada').click(function() {
			$('#jornada-trofeos').datepicker('show');
			return false;
		});
	}

}




$(document).ready(function() {
	/*CAMBIAR_JORNADA.inicio();
	$(document).keyup(function (e) {
		if (typeof(e) == 'undefined')
			e = event;
		if (e.keyCode == 27) {
			$('#jornada-trofeos').datepicker('hide');
		}
	});*/
});